Popis |
---|
Toto makro otočí objekt o 90° doleva. Funguje jen pokud jste v pohledu shora Version macro : 01.00 Date last modification : 2010-11-17 FreeCAD version : All Download : Macro_Rotate_View_view_90_Degrees Autor: Yorik |
Autor |
Yorik |
Download |
Macro_Rotate_View_view_90_Degrees |
Odkazy |
Makro recepty| Jak nainstalovat makra Jak přizpůsobit panely nástrojů |
Verze |
01.00 |
Datum poslední úpravy |
2010-11-17 |
Verze FreeCAD |
All |
Výchozí zástupce |
None |
Viz též |
Macro_Rotate_ViewAxonometric ![]() ![]() Macro Rotate View Free |
Only works if you are in Top view: XY (top)
Macro_Rotate_View_90_Degrees.FCMacro
import math from pivy import coin cam = Gui.ActiveDocument.ActiveView.getCameraNode() rot = coin.SbRotation() rot.setValue(coin.SbVec3f(0,0,1),math.pi/2) nrot = cam.orientation.getValue() * rot cam.orientation = nrot